package com.sixth.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sixth.entity.Banner;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;
@Component
public interface BannerDao extends BaseMapper<Banner> {
    int deleteByPrimaryKey(String id);

    int insert(Banner record);

    int insertSelective(Banner record);

    Banner selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Banner record);

    int updateByPrimaryKey(Banner record);

    List<Banner> selectbannerByCondition(@Param("title") String title, @Param("isDisable") String isDisable);


    int changeStatusByid(@Param("id") String id, @Param("isDisable") String isDisable);

    int addZone(@Param("id") String id, @Param("title") String title, @Param("imgae") String image, @Param("link") String link, @Param("sort") Integer sort, @Param("deleted") String deleted, @Param("gmtCreate") Date gmtCreate, @Param("gmtModified") Date gmtModified, @Param("disable") String disable);
}